<div id="tabs" class="view-details">
	<ul>
		<li><a href="#tabs-1">Patient Details</a></li>
		<li><a href="#tabs-2">Personal Information</a></li>
		<li><a href="#tabs-3">Notes</a></li>
		<li><a href="#tabs-4">Allergies / Warnings</a></li>
		<li><a href="#tabs-5">Family / Social Hx</a></li>
		<li><a href="#tabs-6">Smoking</a></li>
		<li><a href="#tabs-7">Alcohol</a></li>
	</ul>
	<div id="tabs-1" class="patient-details">
		<ul class="singleColRows">
			<li class="leftcol" style="width:135px;">Health Centers</li>
			<li class="rightcol"><?=implode("<br/>", $groups_row);?></li>
		</ul>
		<ul class="singleColRows">
			<li class="leftcol" style="width:135px;">Personnel In Charge</li>
			<li class="rightcol" style="width:366px;">
				<?if(count($users_row)){ 
					foreach($users_row as $ukey => $uval){?>
						<h4><?=$ukey?></h4>
						<p class="patient-users"><?=implode("<br/>", $uval)?></p>
					<? }
				}?>
			</li>
		</ul>
		<ul class="singleColRows">
			<li class="leftcol" style="width:135px;">Status</li>
			<li class="rightcol"><?=($patient_row['active'] == 1)? 'Active':'Deceased';?></li>
		</ul>
	</div>
	<div id="tabs-2" class="patient-details">
		<ul class="main-two-cols">
			<li class="two-cols-left">
				<ul class="rows">
					<li class="leftcol">Title</li>
					<li class="rightcol"><?=$patient_row['title'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">First Name</li>
					<li class="rightcol"><?=$patient_row['fname'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Middle Name</li>
					<li class="rightcol"><?=$patient_row['mname'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Surname</li>
					<li class="rightcol"><?=$patient_row['lname'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Nickname</li>
					<li class="rightcol"><?=$patient_row['nickname'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Date of Birth</li>
					<li class="rightcol"><?=$patient_row['birthday'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Gender</li>
					<li class="rightcol"><?=$patient_row['gender'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Head of the family</li>
					<li class="rightcol"><?=($patient_row['head_of_family'])? "Yes":"No";?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">ATSI</li>
					<li class="rightcol"><?=$patient_row['atsi_label'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">CTG Co-Payment Relief</li>
					<li class="rightcol"><?=($patient_row['ctg_registered'])? "Registered":"Not Registered";?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Address 1</li>
					<li class="rightcol"><?=$patient_row['address1'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Address 2</li>
					<li class="rightcol"><?=$patient_row['address2'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Address 3</li>
					<li class="rightcol"><?=$patient_row['address3'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">City/Suburb</li>
					<li class="rightcol"><?=$patient_row['city'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Postal Code</li>
					<li class="rightcol"><?=$patient_row['zipcode'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Default Phone</li>
					<li class="rightcol"><?=ucfirst($patient_row['default_phone_contact']);?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Home Phone</li>
					<li class="rightcol"><?=$patient_row['phone_home'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Work Phone</li>
					<li class="rightcol"><?=$patient_row['phone_work'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Mobile</li>
					<li class="rightcol"><?=$patient_row['phone_mobile'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Email</li>
					<li class="rightcol"><?=$patient_row['email'];?></li>
				</ul>
			</li>

			<li class="two-cols-right">
				<ul class="rows">
					<li class="leftcol">Chart No.</li>
					<li class="rightcol"><?=$patient_row['chart_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Preferred Contact</li>
					<li class="rightcol"><?=ucwords($patient_row['preferred_contact']);?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Medicare No.</li>
					<li class="rightcol"><?=$patient_row['medicare_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Pension No.</li>
					<li class="rightcol"><?=$patient_row['pension_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">DVA No.</li>
					<li class="rightcol"><?=$patient_row['dva_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Safety Net No.</li>
					<li class="rightcol"><?=$patient_row['safety_net_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Record No.</li>
					<li class="rightcol"><?=$patient_row['record_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">IHI No.</li>
					<li class="rightcol"><?=$patient_row['ihi_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">IHI Record Status</li>
					<li class="rightcol"><?=$patient_row['ihi_record_status'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Pension Status</li>
					<li class="rightcol"><?=ucwords($patient_row['pension_status']);?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Withdrawn consent for PCHER uploads</li>
					<li class="rightcol"><?=($patient_row['withdrawn_consent']) ? "Yes":"No";?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">ePrescribing</li>
					<li class="rightcol"><?=ucwords($patient_row['eprescribing']);?></li>
				</ul>
			</li>
		</ul>
	</div>

	<!-- Notes tab -->
	<div id="tabs-3" class="patient-notes">
		<ul class="main-two-cols">
			<li class="two-cols-left">
				<ul class="rows">
					<li class="leftcol">Notes</li>
					<li class="rightcol"><?=$patient_row['notes'];?></li>
				</ul>
			</li>
			<li class="two-cols-right">
				<ul class="rows">
					<li class="leftcol">Referral</li>
					<li class="rightcol">&nbsp;</li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Referring Doctor</li>
					<li class="rightcol"><?=$patient_row['referring_doctor'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Referral Date</li>
					<li class="rightcol"><?=$patient_row['referral_date'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Health Fund Name</li>
					<li class="rightcol"><?=$patient_row['health_fund_label'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Health Fund No.</li>
					<li class="rightcol"><?=$patient_row['health_fund_no'];?></li>
				</ul>
				<ul class="rows">
					<li class="leftcol">Health Fund Type</li>
					<li class="rightcol"><?=$patient_row['health_fund_type_label'];?></li>
				</ul>
			</li>
		</ul>
	</div>
	<div id="tabs-4"><p class="coming-soon">Coming Soon!</p></div>
	<div id="tabs-5"><p class="coming-soon">Coming Soon!</p></div>
	<div id="tabs-6"><p class="coming-soon">Coming Soon!</p></div>
	<div id="tabs-7"><p class="coming-soon">Coming Soon!</p></div>
	<br clear="all" />
</div>